Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(context-menu): add context menu to dashboard #209

Merged
merged 1 commit into from
Aug 19, 2022

Conversation

jmbuss
Copy link
Contributor

@jmbuss jmbuss commented Aug 15, 2022

Overview

Adds a right click context menu to the dashboard. The contents of which are defined by getContextMenuConfiguration in packages/dashboard/src/components/iot-dashboard/iot-dashboard-internal.tsx. The positioning of the menu to handled through the popperjs library. This ensures that the popper will stay on screen no matter where you right click.

This also introduces a message overrides configuration for the dashboard. Right now this includes the text for the context menu and fallback messaging for a dashboard widget that has failed to load.

Tests

[Include a link to the passing GitHub action running the test suite here.]

Legal

This project is available under the Apache 2.0 License.

@lgtm-com
Copy link

lgtm-com bot commented Aug 15, 2022

This pull request introduces 4 alerts when merging 9541f435e621711e865ba63e01aca1448e1b664f into 1c1c9dd - view on LGTM.com

new alerts:

  • 4 for Unused variable, import, function or class

@jmbuss jmbuss force-pushed the feat/dashboard-context-menu branch 3 times, most recently from b013bcc to d01396c Compare August 15, 2022 20:19
@jmbuss jmbuss marked this pull request as ready for review August 15, 2022 20:37
@jmbuss jmbuss force-pushed the feat/dashboard-context-menu branch 2 times, most recently from 3edf6ca to 1aa6727 Compare August 16, 2022 20:44
Copy link
Contributor

@diehbria diehbria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see comments

@jmbuss jmbuss force-pushed the feat/dashboard-context-menu branch 4 times, most recently from 3bd6cd0 to 931422c Compare August 17, 2022 18:53
@jmbuss jmbuss requested a review from diehbria August 17, 2022 19:45
@jmbuss jmbuss force-pushed the feat/dashboard-context-menu branch 2 times, most recently from cdc0c21 to 7267de5 Compare August 17, 2022 21:22
@jmbuss jmbuss requested a review from diehbria August 17, 2022 21:34
@jmbuss jmbuss force-pushed the feat/dashboard-context-menu branch from 7267de5 to 8ca5f95 Compare August 18, 2022 17:15
@jmbuss jmbuss requested a review from diehbria August 18, 2022 17:31
@jmbuss jmbuss merged commit 4695503 into feature-dashboard Aug 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants